<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north'" class="center">
        <div class="webmap">
            <p class="webmaptip">当前位置:</p>
            <a href="javascript:goHome();" class="easyui-link">系统管理</a>
            <p class="webmaptip">></p>
            <a href="javascript:;" class="easyui-link">AppVersion管理</a>
        </div>
        <div class="querybtn">
            <a id="add" href="javascript:;" class="easyui-linkbutton  warning"
               data-options="iconCls:'fa fa-plus'">添加</a>
            <div style="visibility: hidden;">aa</div>
        </div>
        <div class="separator"></div>

    </div>

    <div data-options="region:'center'">
        <table id="list"></table>
    </div>
</div>

<script type="text/javascript">

    var addUrl = "page/system/appversionadd.html";
    var editUrl = "page/system/appversionedit.html";
    var delUrl = '/appversion/del';
    var save = '/appversion/save';
    var listUrl = "/appversion/list";
    var edit = "/appversion/edit";
    var columns = [[{
        field: 'id',
        checkbox: true
    }, {
        field: 'downLoadUrl',
        title: '下载地址'
    }, {
        field: 'message',
        title: '新版本信息'
    }, {
        field: 'versionCode',
        title: '版本号'
    }, {
        field: 'versionName',
        title: '版本名称'
    }, {
        field: 'state',
        title: '是否强制更新',
        formatter: function (value, rows, index) {
            if (value) {
                if (value == "0") {
                    return "否";
                }
                if (value == "1") {
                    return "是";
                }
            }
        }
    }
    ]];
    list.init({url: listUrl, columns: columns});
</script>
